package org.feng.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author feng
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_generate")
@ApiModel("自动生成代码")
public class Generate implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "表前缀")
    @TableField("table_prefix")
    private String tablePrefix;

    @ApiModelProperty(value = "表名")
    @TableField("table_name")
    private String tableName;

    @ApiModelProperty(value = "后端输出路径")
    @TableField("java_file")
    private String javaFile;

    @ApiModelProperty(value = "包名")
    @TableField("parent_path")
    private String parentPath;

    @ApiModelProperty(value = "前端代码")
    @TableField("module")
    private String module;

    @ApiModelProperty(value = "继承公共entity")
    @TableField("is_parent")
    private Integer isParent;

    @ApiModelProperty(value = "数据源id")
    @TableField("datasource_id")
    private Long datasourceId;
}
